import { defineEventHandler } from 'h3';

export default defineEventHandler(async () => {
  return {
    code: 0,
    data: {
      totalApplications: 5,
      runningApplications: 3,
      availableTemplates: 12,
      monthlyDeployments: 8,
      totalUsers: 455,
      totalRevenue: 125000,
      averageUptime: 99.8,
      activeRegions: 4,
      industryDistribution: {
        hotel: 1,
        pet: 1,
        spa: 1,
        scenic: 1,
        restaurant: 1,
      },
      deploymentEnvironments: {
        prod: 3,
        staging: 1,
        dev: 1,
      },
      monthlyGrowth: 15.5,
      customerSatisfaction: 4.8,
    },
    msg: '获取SaaS统计数据成功',
  };
});

